#include <iostream>
#include<algorithm>
using namespace std;

int gcd(int a,int b){
    while(b!=0){
        a%=b;
        swap(a,b);
    }
    return abs(a);
}
long long lcm(int a,int b){
    if(a==0||b==0) return 0;
    return static_cast<long long>(a)/gcd(a,b)*b;
}
int main() {
    int a,b;
    cin>>a>>b;
    cout<<lcm(a,b)<<endl;

}
